Ext.namespace('SLM');

SLM.EventAdd = function(config) {

	Ext.apply(this, config, {
			title: 'Add Event'
		,	iconCls: 'icon_collections'
		,	width: 300
		,	height: 200
		,	modal: true
		,	onEsc: Ext.emptyFn
		,	autoScroll: true
		,	bodyStyle: 'background-color: #ff0000;'
		,	items: new Ext.FormPanel({
					labelWidth: 75
				,	url: 'save-form.php'
				,	defaults: {width: 230}
				,	defaultType: 'textfield'
				,	items: [{
							fieldLabel: 'Title'
						,	name: 'title'
						,	allowBlank: false
					}]
			})
		,	buttons: [{
					text: 'Save'
				,	handler: function() {
	        }
			},{
					text: 'Cancel'
				,	scope: this	
				,	handler: function(){
						this.close();
					}
			}]
	});

	SLM.DwcAdd.superclass.constructor.apply(this, arguments);

};

Ext.extend( SLM.DwcAdd, Ext.Window, {});